import request from "../../utils/request";

const enum Api {
  getLoginKey = "/login/qr/key",
  getLoginQr = "/login/qr/create"
}
export const getLoginKeyApi = () => {
  return request.get<never, any>(Api.getLoginKey, {
    params: {
      timerstamp: new Date().getTime(),
    },
  });
};
export const getLoginQrApi=  (key:string)=>{
  return request.get<never,any>(Api.getLoginQr, {
    params: {
      timerstamp: new Date().getTime(),
      key,
      qring:true,
    }})
}
